//
//  RankViewController.m
//  iread
//
//  Created by 朱经扬 on 15/12/17.
//  Copyright © 2015年 朱经扬. All rights reserved.
//

#import "RankViewController.h"
#import "RankTableViewCell.h"
#import "MyRankViewController.h"
@interface RankViewController ()

@end

@implementation RankViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 3;
}

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return 1;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *ID = @"rankCell";
    RankTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if(!cell) {
        cell = [[RankTableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:ID];
    }
  //  [cell.iconBtn addTarget:self action:@selector(iconBtnCilck:) forControlEvents:UIControlEventTouchUpInside];
 
    return cell;
}

- (void)iconBtnCilck:(UIButton *)sender{
    MyRankViewController *myRankView = [[MyRankViewController alloc]init];
    [self.navigationController pushViewController:myRankView animated:YES];
}

@end
